<?php
/**
 * Created by PhpStorm.
 * User: wumengmeng <wu_mengmeng@foxmail.com>
 * Date: 2019/4/26 0026
 * Time: 14:35
 */

namespace HiCommon\Service;

use HiCommon\MongodbModel\MongoActionAdminLog;
use HiCommon\MongodbModel\MongoActionShopUserLog;
use HiCommon\MongodbModel\MongoLoginAdminLog;
use HiCommon\MongodbModel\MongoLoginShopUserLog;
use HiCommon\MongodbModel\MongoLoginUserLog;

class MongoLogService extends BaseService
{

    /**
     * 记录商户登录日志
     *
     * @param $arr_data
     *
     * @author wumengmeng <wu_mengmeng@foxmail.com>
     */
    public function shop_user_login($arr_data){
        MongoLoginShopUserLog::create($arr_data);
    }

    /**
     * 记录用户登录日志
     *
     * @param $arr_data
     *
     * @author wumengmeng <wu_mengmeng@foxmail.com>
     */
    public function user_login($arr_data){
        MongoLoginUserLog::create($arr_data);
    }

    /**
     * 记录管理用户登录日志
     *
     * @param $arr_data
     *
     * @author wumengmeng <wu_mengmeng@foxmail.com>
     */
    public function admin_login($arr_data){
        MongoLoginAdminLog::create($arr_data);
    }

    /**
     * 记录管理用户操作日志
     *
     * @param $arr_data
     *
     * @author wumengmeng <wu_mengmeng@foxmail.com>
     */
    public function admin_action($arr_data){
        MongoActionAdminLog::create($arr_data);
    }

    /**
     * 记录商户用户操作日志
     *
     * @param $arr_data
     *
     * @author wumengmeng <wu_mengmeng@foxmail.com>
     */
    public function shop_user_action($arr_data){
        MongoActionShopUserLog::create($arr_data);
    }






}